<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户列表</title>
</head>
<body>
	<a href="saveUserPage.do">添加</a>
	<table border=1 cellpadding="10" cellspacing="0">
		<tr>
			<th>id</th>
			<th>name</th>
			<th>age</th>
			<th>addrs</th>
			<th colspan="3">操作</th>
		</tr>
		
			<c:forEach items="${list }" var="user">
			<tr>
				<th>${user.id }</th> 
				<th>${user.name }</th>
				<th>${user.age }</th>
				<th>${user.addrs }</th>
				<th><a href="deleteUser.do?id=${user.id }">删除</a></th>
				<th><a href="updateUserPage.do?id=${user.id }">修改</a></th>
			</tr>
			</c:forEach>	
	</table>
	<span>${msg }</span>
</body>
</html>